package lanqiao;

import java.util.Arrays;
import java.util.Scanner;

public class C {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int groups = sc.nextInt();
        sc.nextLine();
        int[] results = new int[groups];
        for (int i=0;i<groups;i++) {
            int nums = sc.nextInt();
            sc.nextLine();
            String line = sc.nextLine();
            results[i] = getResult(line);
        }
    }

    public static int getResult(String line) {
        int[] nums = Arrays.stream(line.split(" ")).mapToInt(Integer::parseInt).toArray();
        return 0;
    }
    // 未完待续
}
